/**
 * 作者: chenlingzhi
 * 日期: 2024-12-12 15:00:31
 * 备注: 成长基金配置表
 */
package com.motu.monstercity.server.game.commondata.iap;

import io.vertx.core.json.JsonObject;

public class GrowthFundModel {
	protected int id; // id
	protected int groupId; // 分组id
	protected int type; // 类型 (113:市政等级 124:秘书人数 184:城市赚速 141:干员资质 117: 子嗣毕业人数)
	protected long num; // 达成条件数量
	protected String freeReward; // 免费奖励
	protected String payReward; // 付费奖励

	public GrowthFundModel() {
	}

	public GrowthFundModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		groupId = obj.containsKey("group_id") ? obj.getInteger("group_id") : 0;
		type = obj.containsKey("type") ? obj.getInteger("type") : 0;
		num = obj.containsKey("num") ? obj.getLong("num") : 0;
		freeReward = obj.containsKey("free_reward") ? obj.getString("free_reward") : "";
		payReward = obj.containsKey("pay_reward") ? obj.getString("pay_reward") : "";
	}

	public int getId() {
		return id;
	}

	public int getGroupId() {
		return groupId;
	}

	public int getType() {
		return type;
	}

	public long getNum() {
		return num;
	}

	public String getFreeReward() {
		return freeReward;
	}

	public String getPayReward() {
		return payReward;
	}

}
